package com.three.dao;

import java.util.List;

import com.three.entity.User;

public interface UserDao {

	public User findUserByPhone(String phone);
	
	public List<User> findUsersByCid(Integer id);
	
	public List<User> findStudentsByCid(Integer cid);
	
	public List<User> findUsersByCidWithRollcalls(Integer cid);
	
	public User findUserByPhoneWithClassmates(String phone);
	
	public int insertUser(User user);
	
	public int changeUserName(String name,String id);
	
	public int changeCampus(String campus,String id);
	
	public int changeSno(String sno,String id);
	
	public int changePhone(String phone,String id);
	
	public int updatePwd(String pwd,Integer uid);

	public String findPwdByUid(Integer uid);
	
	public int updatePicUrl(Integer uid,String fileName);
	
	public String findPicUrlByUid(Integer uid);
	
}
